-
-
Notifications
You must be signed in to change notification settings - Fork 20
Add default None values to Optional fields #1267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
to avoid errors like: TypeError: non-default argument 'client_version' follows default argument
|
I've tested this PR and #1265 in real life, they are working. |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
not stale |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
not stale |
Proposed Changes
In mashumaro we have to add default values to fields that can be missing (see Fatal1ty/mashumaro#283 (comment))
As I see there were issues in the past, when TS removed fields, without notice, and that broke this API immediately. This PR will fill the missing optionals fields with None.
Note: #1265 also needed.
Related Issues
fixes #1262
closes #1263